﻿@{
    Layout = "~/Views/Shared/_Layout_Admin.cshtml";
    ViewBag.Title = "播放列表管理";
    bool isadd = string.IsNullOrWhiteSpace(ViewBag.Guid ?? null);
}
<h2 style="float: right;">
    <a href="/playlist/index">返回</a>
</h2>
<div class="clearall"></div>
<h2>
    @(isadd ? "添加播放列表" : "修改播放列表")
</h2>
<br />
<form action="/playlist/modify" method="post">
    <input type="hidden" name="guid" value="@(ViewBag.Guid ?? "")" />
    标题
    <input type="text" name="Title" value="@(ViewBag._Title ?? "")" />
    <br />
    Key
    <input type="text" name="Key" value="@(ViewBag.Key ?? "")" />
    <br />
    播放器上面的地址
    <textarea name="XiamiPlayUrl">@(ViewBag.XiamiPlayUrl ?? "")</textarea>
    <br />
    给别人点击的地址
    <textarea name="XiamiPageUrl">@(ViewBag.XiamiPageUrl ?? "")</textarea>
    <br />
    <input type="submit" value="@( isadd ? "添加" : "修改")" />
</form>
<div class="clearall"></div>
<div class="error_msg">
    @Html.Raw(ViewBag.Error)
</div>
<input type="hidden" id="hidden_result" value="@(ViewBag.Result ?? "")" />
<input type="hidden" id="hidden_result_msg" value="@(ViewBag.ResultMsg ?? false)" />
<input type="hidden" id="hidden_redirect" value="@(ViewBag.Redirect ?? "")" />
